package game;

import com.mysql.cj.jdbc.MysqlDataSource;
import game.role.Player;
import game.role.Role;

import javax.sql.DataSource;
import javax.swing.*;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.Scanner;

public class main {
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        menu1();//开始游戏菜单；
        int i = scanner.nextInt();
        play(i);//人物选择，初始化人物;



    }

    public static void menu1(){
        System.out.println("------------------------");
        System.out.println("     1、开始游戏");
        System.out.println("     2、继续游戏");
        System.out.println("     3、退出游戏");
        System.out.println("------------------------");

    }
    public static Player play(int i){
        switch (i){
            case 1:
                System.out.println("请输入你的姓名");
                String name = new Scanner(System.in).nextLine();
                Player player = new Player(name);
                player.starts.setBlood(player.starts.getCorporeity()*10);
                player.starts.setPhyAttack(player.starts.getStrength());
                System.out.println("初始化人物");
                System.out.println(player.toString());
                return player;
            case 2:



        }
        return null;
    }
}
